<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>发布博客</title>
    <!--百度统计-->
    <script src="/blog/js/statistics.js"></script>
    <!--editor 的css-->
    <link rel="stylesheet" href="/lib/editormd/css/editormd.css"/>
    <link rel="shortcut icon" href="https://pandao.github.io/editor.md/favicon.ico" type="image/x-icon"/>

    <!--layUI的css-->
    <link rel="stylesheet" href="/layui/css/layui.css">
    <style>
        body{
            width: 100%!important;
            height: 100%!important;
            background-image: url("https://z3.ax1x.com/2021/08/31/ha0nO0.jpg");
            background-size: 100% auto;
            background-repeat: repeat;
        }
    </style>
    <!--layUI的js-->
    <script src="/layui/layui.js"></script>
    <script>
        layui.use(['layer'], function () {
            layui.layer.load(1,{time:5000});
        })
    </script>
</head>
<body class="layui-bg-gray">

<div style="padding: 2em">
    <div class="layui-card">
        <form class="layui-form layui-form-pane">

            <div class="layui-card-header">
                <div class="layui-form-item">
                    <label class="layui-form-label">标题</label>
                    <div class="layui-input-block">
                        <input type="text" name="title" required lay-verify="required" placeholder="请输入标题"
                               autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>

            <div class="layui-card-body">

                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">内容</label>
                    <div class="layui-input-block">
                        <div id="md-content">
                            <textarea name="content" placeholder="请输入内容" required lay-verify="required"
                                      style="display:none;" class="layui-textarea"></textarea>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">简介</label>
                    <div class="layui-input-block">
                        <textarea name="description" placeholder="请输入简介" required lay-verify="required" class="layui-textarea"></textarea>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">分类</label>
                        <div class="layui-input-inline layui-border-blue">
                            <select name="type_id" lay-verify="required">
                                <option value="">请选择</option>
                                <!--<option value="1">SpringMVC</option>
                                <option value="2">MyBatis</option>-->
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <div class="layui-input-inline layui-border-blue" style="width: 100px">
                            <select name="create_flag" class="layui-form-select" lay-verify="required">
                                <!--<option value="原创">原创</option>
                                <option value="转载">转载</option>-->
                            </select>
                        </div>
                    </div>

                    <div class="layui-inline ">
                        <label class="layui-form-label">推荐级别</label>
                        <div class="layui-input-inline layui-border-blue">
                            <select name="recommend_level" class="layui-form-select" lay-verify="required">
                                <option value="">请选择</option>
                                <!--<option value="1">不推荐</option>
                                <option value="5">置顶</option>-->
                            </select>
                        </div>

                    </div>
                </div>

                <div class="layui-form-item" pane>
                    <label class="layui-form-label">标签</label>
                    <div class="layui-input-block" id="tag_div">
                        <!--<input type="checkbox" name="tag[write]" title="使用">
                        <input type="checkbox" name="tag[bug]" title="Bug">-->
                    </div>
                </div>

                <div class="layui-form-item" pane>
                    <label class="layui-form-label">图片url</label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="image_url" title="图片url" value="https://picsum.photos/600/400">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block" style="text-align: right">
                        <button class="layui-btn" lay-submit lay-filter="form_publish">发布</button>
                        <button class="layui-btn" lay-submit lay-filter="form_save">保存草稿</button>
                        <button type="reset" class="layui-btn layui-btn-primary" name="reset_btn">重置</button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

</body>
</html>
<!--jQuery-->
<script src="/jquery-3.6.0.min.js"></script>
<!--editor 的js-->
<script src="/lib/editormd/editormd.min.js"></script>
<!--我的js-->
<script src="/settings/js/add_blog.js"></script>